package com.itheima.search.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.behavior.pojos.ApBehaviorEntry;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.search.dto.UserSearchDto;
import com.heima.model.search.pojos.ApUserSearch;

public interface ApUserSearchService extends IService<ApUserSearch> {
    /**
     * 保存用户搜索历史记录
     * @param entry
     */
    public void insert(ApBehaviorEntry entry,String searchWords);

    /**
     查询搜索历史
     @param userSearchDto
     @return
     */
    ResponseResult findUserSearch(UserSearchDto userSearchDto);

    /**
     删除搜索历史
     @param userSearchDto
     @return
     */
    ResponseResult delUserSearch(UserSearchDto userSearchDto);
}